package chapter10;

import java.util.LinkedHashSet;
import java.util.Set;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/2/19 15:24
 */
public class LinkedHashSetTest {
    public static void main(String[] args) {
        Set<String> set = new LinkedHashSet<>();
        set.add("b");
        set.add("c");
        set.add("a");
        set.add("c");

        set.forEach(System.out::println);
    }
}
